<?
$rightCol  = 1;
$eventMenu = 1;
if (!empty($_GET['eventID'])) {
	$maps      = 1;
}	
include('includes/appInit.php');
include('includes/header.php');
$events = new Events();
?>
	<div id="subPage">
		<div class="leftCol">
		
			<div id="subPageContent" class="flex">
				<h1><?=$translate->_('Conferences and Events'); ?></h1>
				<? 
				if (!empty($_GET['eventID'])) {
					echo $events->getEventDetails($_GET['eventID']);
				} else {
				?>					
				<p>
					<? 
					if (!empty($_GET['month'])) {
						$events->getEventList(null,1,'page',$_GET['month']);
					} else {
						$events->getEventList(date('Y-m-d'));
					}	
					echo $events->renderEventHTML();
					?>
				</p>
				
				<? } ?>	
			</div>
		</div>
		<div class="rightCol noPrint">
			<div class="rightColInner flex" style="height: 500px;">
				<? include('includes/rightColumn.php'); ?>
			</div>
		</div>
		<div style="clear: both;"></div>
	</div>	
	
	
<?
include('includes/footer.php');
?>